import re
content=''
with open('uniestate.properties') as f:
    content=f.read()
    # print(f.read())

re_my=re.compile('(estate(_[a-z]{2})?)')
print(content)
matchlist=re_my.findall(content)
for item in matchlist:
    print(item[0])
# print(re_my.findall(content))

re_ip=re.compile('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}')
iplist=re_ip.findall(content)
print(iplist)
